﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CqusInfo.DAL.User;

namespace CqusInfo.BLL.User
{
    public class User_BlackBLL:Inteface.IUser_BlackBLL
    {
        private static readonly User_BlackDAL ubDal = new User_BlackDAL();
        public int GetCounts(bool isDel)
        {
            return ubDal.GetCounts(isDel);
        }

        public List<RAL.User.User_BlackModel> Query(string admin, string userName, int page, int takeItem)
        {
            return ubDal.Query(admin, userName, page, takeItem);
        }

        public List<RAL.User.User_BlackModel> Query(int page, int takeItem, bool isBlack, bool isDel)
        {
            return ubDal.Query(page, takeItem, isBlack, isDel);
        }

        public int Query(string userName)
        {
            return ubDal.Query(userName);
        }

        public int Add(RAL.User.User_BlackModel model)
        {
            return ubDal.Add(model);
        }

        public int Delete(string ubId, bool isDel, bool trueDel)
        {
            return ubDal.Delete(ubId, isDel, trueDel);
        }

        public bool Update(string userName)
        {
            return ubDal.Update(userName);
        }

        public bool Update(string userName, bool isBlack)
        {
            return ubDal.Update(userName, isBlack);
        }
    }
}
